package com.eastchina.fids2focs.common;

import com.eastchina.fids2focs.common.util.ResourceManager;

public class FIDSIIError {

	private String errorCode;
	
	private String errorMessage;
	
	public FIDSIIError(String errorCode) {
		this.errorCode = errorCode;
		this.errorMessage = ResourceManager.getMessage(errorCode);
	}
	
	public FIDSIIError(String errorCode, Object... args) {
		this.errorCode = errorCode;	
		this.errorMessage = ResourceManager.getMessage(errorCode, args);
	}
	
	public String getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}
}
